
// 查看玩家信息 {"序列":"11"}

// @ts-ignore
export async function execute(client_id,message_json) {
    let id = message_json["序列"];
    let characters = _CharactersData.get(id);
    if (characters === undefined) {
        ClientUtils.send_basic_prompt(client_id, "玩家不存在或已下线");
    } else {
        if (characters["系统设置"]["允许查看装备"]) {
            ClientUtils.send_client_message(client_id, 6587, {
                "装备": characters["装备"],
                "灵饰": characters["灵饰"],
                "角色": {
                    "名称": characters["名称"],
                    "等级": characters["等级"],
                    "模型": characters["模型"],
                    "id": characters["id"],
                    "染色组": characters["染色组"],
                    "炫彩": characters["炫彩"],
                    "炫彩组": characters["炫彩组"],
                    "染色方案": characters["染色方案"],
                    "锦衣": characters["锦衣"]
                },
            });
        } else {
            ClientUtils.send_basic_prompt(client_id, "对方已设置已禁止查看装备");
        }
    }
}
